<template>
  <div style="position: fixed;width: 100%; height: 100%;">
    <iframe
      id="frame"
      v-bind:srcdoc="qrCode"
      style="width: 100%; height: 100%"
    ></iframe>
  </div>
</template>

<script>
export default {
  data() {
    return {
      qrCode: "",
    };
  },
  created() {
    if (!this.$route.query.qrCode) {
      this.$router.push("/");
    }
    this.qrCode = this.$route.query.qrCode;
  },
};
</script>
<style lang="less" scoped>
</style>